package com.tp.service.controller;

import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;

@RestControllerAdvice
public class ExceptionHandle {

    @ExceptionHandler
    public String ttt(Exception e){
        System.out.println("exception");
        return "hello";
    }

}
